﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JinfuyuanProject.Entity;
using JinfuyuanProject.Service.Interface;
using JinfuyuanProject.Repository.Interface;
using System.Collections;
using JinfuyuanProject.Entity.Filter;
using JinfuyuanProject.Entity.ViewModels;

namespace JinfuyuanProject.Service
{
    public  class OutboundService : IOutboundService
    {
        private readonly IOutboundRepository _outboundRepository;
        

        public OutboundService(IOutboundRepository outboundRepository)
        {
            _outboundRepository = outboundRepository;
           
        }
        public bool Delete(Outbound outbound)
        {
            return _outboundRepository.Delete(outbound);
        }

        public IQueryable<Outbound> GetList()
        {
            return _outboundRepository.GetList();
        }

        public Outbound GetModel(int Id)
        {
            return _outboundRepository.GetModel(Id);
        }

        public int Insert(Outbound outbound)
        {
            return _outboundRepository.Insert(outbound);
        }

        public bool Update(Outbound outbound)
        {
            return _outboundRepository.Update(outbound);
        }
        #region 业务方法

        


        



        #endregion
    }
}
